home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / New System Software Extensions / OpenDoc A6 / SOM / OpenDoc and SOM / IDL / RefCtObj.idl < prev    next >
Encoding:
Text File  |  1994-04-19  |  1.3 KB  |  55 lines  |  [TEXT/MPS ]

  1. //# Copyright:    © 1993-94 by Apple Computer, Inc., all rights reserved.
  2. #ifndef _REFCTOBJ_
  3. #define _REFCTOBJ_
  4.  
  5. #ifndef _ODOBJECT_
  6. #include "ODObject.idl"
  7. #endif
  8.  
  9. //==============================================================================
  10. // Theory of Operation
  11. //==============================================================================
  12.  
  13. /*
  14.   This file defines class ODRefCntObject.  This class is the common base class
  15.   for all OpenDoc classes whose objects require ref counting.
  16. */
  17.  
  18. //==============================================================================
  19. // Classes defined in this interface
  20. //==============================================================================
  21.  
  22. interface  ODRefCntObject;
  23.  
  24. //==============================================================================
  25. // ODRefCntObject
  26. //==============================================================================
  27.  
  28. interface ODRefCntObject :  ODObject
  29. {     
  30.   void  InitRefCntObject();
  31.   
  32.   void  IncrementRefCount();
  33.     
  34.   void  Release();
  35.       
  36.   ODULong  GetRefCount();
  37.  
  38. #ifdef __SOMIDL__
  39.   implementation
  40.   {
  41.     somInit : override;
  42.     somUninit : override;
  43.     releaseorder:
  44.         InitRefCntObject,
  45.         IncrementRefCount,
  46.         Release,
  47.         GetRefCount;
  48.     
  49.   };
  50. #endif
  51. };
  52.  
  53. #endif // _REFCTOBJ_
  54.  
  55.